package com.laitaoo.controller
{
	import com.laitaoo.event.LoginEvent;
	import com.laitaoo.service.UserService;
	
	import mx.controls.Alert;

	[Component]
	public class UserController
	{
		public function UserController()
		{
		}
		
		[Inject]
		public var userService:UserService;
		
		[EventHandler]
		public function loginHandler(event:LoginEvent):void{
			
			userService.userLogin(event.user);
			
		}
	}
}